package cn.com.cym.gamezao.entity.xmu.recruit;

import cn.com.cym.gamezao.base.BaseEntity;
import cn.com.cym.gamezao.entity.authorize.User;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@Table(name = "x_certificate")
@Entity
@Accessors(chain = true)
@ApiModel(description = "证书管理")
public class Certificate extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -6812318221260844374L;

    @ManyToOne
    @JoinColumn(name = "user_id")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private User user;


    /**
     * 规范化培训证书
     */
    @Column(length = 36)
    private String trainCert;

    /**
     * 医师资格证
     */
    @Column(length = 36)
    private String physicianCert;


    /**
     * 职称证书
     */
    @Column(length = 36)
    private String proCert;

    /**
     * 执业证书
     */
    @Column(length = 36)
    private String practiceCert;


    /**
     * 职称聘任证书
     */
    @Column(length = 36)
    private String proAppointmentCert;


    /**
     * 毕业证
     */
    @Column(length = 36)
    private String diploma;


    /**
     * 学位证
     */
    @Column(length = 36)
    private String degreeCert;

    /**
     * 身份证
     */
    @Column(length = 36)
    private String idCert;


    /**
     * 其他学信网认证证书
     */
    @Column(length = 36)
    private String otherDegreeCert;


    /**
     * 英语四六级证书
     */
    @Column(length = 36)
    private String cetCert;


    /**
     * 辅助报告
     */
    @Column(length = 36)
    private String auxiliaryReport;

    @Column(length = 64)
    private String auxiliaryReportName;


    /**
     * 其他证书
     */
    @Column(length = 36)
    private String otherCert;
}
